package com.mystudy.annotation;

import java.lang.annotation.*;

/**
 * @program: infoalgorithm
 * @description:
 * @author: zhouzhilong
 * @create: 2019-11-08 17:11
 **/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface PermissionAnnotation {
    OperationType operationValue();

//    public OperationType

    public enum OperationType {
        QUERY("query"),
        INSERT("insert"),
        DELETE("delete"),
        UPDATE("update");


        private final String value;

        OperationType(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }

}
